﻿#pragma once


// CAAControlDlg 对话框

class CAAControlDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CAAControlDlg)

public:
	CAAControlDlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CAAControlDlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_AA };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	void ReadConfigIni();
	void SaveValueToConfig();

	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	afx_msg void OnBnClickedButtonSave();
	double m_dAngleLimitSpec;
	int m_nUVTime;
	int m_nCapWaitTime;
	int m_nPeakDiff;
	int m_nPeakSpec;
	double m_dPixelSize;
	int m_nReturnStep;
	int m_nSearchZCnt;
	double m_dSearchZSiepDis_1;
	double m_dSearchZSpec_1;
	double m_dSearchZSiepDis_2;
	double m_dSearchZSpec_2;
	int m_nAAStepCnt;
	double m_dAAStepDis;
	double m_dOffsetZ;
	BOOL m_bOpenOffset;
	BOOL m_bSaveTF;
	BOOL m_bAutoReturn;
	int m_nStepWait;
	double m_dCenterPer;
	double m_dFieldSfrDiffSpec;
	double CalibrationLimit;
	BOOL AngleLimitFlag;
	int PosX0;
	int PosY0;
	int PosZ0;
	int PosXt0;
	int PosYt0;
	int PosZt0;
	int PosX1;
	int PosY1;
	int PosZ1;
	int PosXt1;
	int PosYt1;
	int PosZt1;
	int PosX2;
	int PosY2;
	int PosZ2;
	int PosXt2;
	int PosYt2;
	int PosZt2;
	int PosX3;
	int PosY3;
	int PosZ3;
	int PosXt3;
	int PosYt3;
	int PosZt3;
	int m_nSNCnt1;
	int m_nSNCnt0;
	BOOL SearchZReturnFlag;
	int SearchZReturnStep;
	int ZPosLimit;
	afx_msg void OnBnClickedButtonSetp1();
	afx_msg void OnBnClickedButtonSetp2();
	afx_msg void OnBnClickedButtonSetp3();
	afx_msg void OnBnClickedButtonSetp4();
	int PosNGZ;
	afx_msg void OnBnClickedButtonSetp5();
	int m_nHomeOffsetX;
	int m_nHomeOffsetY;
	int m_nHomeOffsetZ;
	afx_msg void OnBnClickedButtonSetp6();
	int PosTbx1;
	int PosTbx2;
	int PosTbx3;
	int PosTbx4;
	double m_dPixelSize2;
	BOOL PIXELFlag;
	BOOL ManualAAFlag;
};
